//
//  IZYImageCacheProtocol.h
//  ZYWebImage
//
//  Created by wangzhipan on 2025/3/18.
//

#ifndef IZYImageCacheProtocol_h
#define IZYImageCacheProtocol_h
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, ZYImageCacheType) {
    ZYImageCacheTypeNone = 0,
    ZYImageCacheTypeMemory,
    ZYImageCacheTypeDisk,
    ZYImageCacheTypeAll
};

typedef NS_ENUM(NSInteger, ZYImageFormat) {
    ZYImageFormatUnknow = 0,
    ZYImageFormatPng = 1,
    ZYImageFormatJpeg,
    ZYImageFormatGif,
    ZYImageFormatWebp
};

typedef void(^ZYImageCacheQueryCompletionBlock)(UIImage * _Nullable image, NSData * _Nullable data, ZYImageCacheType type);

#endif /* IZYImageCacheProtocol_h */
